Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Retention Policy incorrectly auto created #1929

Merged
merged 2 commits into from
Mar 12, 2015

Conversation

corylanou
Copy link
Contributor

This fixes two bugs:

  1. When the default retention policy was auto created, it was passing the database name to the policy map, not the retention policy name.
  2. This was not taking into account ShardGroupDuration during auto create.

Added test coverage for these scenarios.

@pauldix
Copy link
Member

pauldix commented Mar 12, 2015

LGTM 🚢

corylanou added a commit that referenced this pull request Mar 12, 2015
Default Retention Policy incorrectly auto created
@corylanou corylanou merged commit 10b8cc8 into master Mar 12, 2015
@corylanou corylanou deleted the rp-autocreate-broken branch March 12, 2015 16:19
@otoolep
Copy link
Contributor

otoolep commented Mar 12, 2015

We have an integration test specifically for this. I'm looking into why it didn't catch it.

@otoolep
Copy link
Contributor

otoolep commented Mar 12, 2015

I see now. The command 'SHOW RETENTION POLICIES' is unaffected by this bug, since it doesn't depend on the key in the map. I wonder why we we even bother use a map to store retention policies.

@corylanou -- good catch. How did you come across it?

@corylanou
Copy link
Contributor Author

@otoolep when I added the graphite auto create database, I let it auto create the rp for me, and it kept failing telling me it couldn't find the default retention policy.

As a follow up I'm changing the "show retention policies foo" to send back a new column "default".

@otoolep
Copy link
Contributor

otoolep commented Mar 12, 2015

Good idea. I presume you mean a Boolean column.

@corylanou
Copy link
Contributor Author

@otoolep #1931

mark-rushakoff pushed a commit that referenced this pull request Jan 11, 2019
* Fix typo

* Add logout route and component

* Refactor logout button in profile to point to logout route

* WIP refactor nav menu

Making the presentational components composable, removed a couple unecessary concepts

* Style sub-menu items

* Remove unecessary async

* Use Clockface Select to enforce child types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants